<T:ViewBase x:Class="WPFExcelReport.TDWKUNDE02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKKUNDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKKUNDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKKENNUNG1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKKENNUNG1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKVERSNR1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKVERSNR1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKVERSPATCH1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKVERSPATCH1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKVERSDAT1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKVERSDAT1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKDIR1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKDIR1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKUSERPASS1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKUSERPASS1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKKENNUNG2:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKKENNUNG2}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKVERSNR2:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKVERSNR2}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=DWKVERSPATCH2:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwDWKUNDE.DWKVERSPATCH2}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsDWKUNDE,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwDWKUNDE}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwDWKUNDE, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="DWKMANDANT"
                                    Binding="{Binding Path=DWKMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKKUNDNR"
                                    Binding="{Binding Path=DWKKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKKENNUNG1"
                                    Binding="{Binding Path=DWKKENNUNG1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKKENNUNG1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSNR1"
                                    Binding="{Binding Path=DWKVERSNR1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSNR1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSPATCH1"
                                    Binding="{Binding Path=DWKVERSPATCH1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSPATCH1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSDAT1"
                                    Binding="{Binding Path=DWKVERSDAT1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSDAT1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKDIR1"
                                    Binding="{Binding Path=DWKDIR1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKDIR1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKUSERPASS1"
                                    Binding="{Binding Path=DWKUSERPASS1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKUSERPASS1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKKENNUNG2"
                                    Binding="{Binding Path=DWKKENNUNG2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKKENNUNG2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSNR2"
                                    Binding="{Binding Path=DWKVERSNR2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSNR2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSPATCH2"
                                    Binding="{Binding Path=DWKVERSPATCH2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSPATCH2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSDAT2"
                                    Binding="{Binding Path=DWKVERSDAT2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSDAT2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKDIR2"
                                    Binding="{Binding Path=DWKDIR2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKDIR2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKUSERPASS2"
                                    Binding="{Binding Path=DWKUSERPASS2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKUSERPASS2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKKENNUNG3"
                                    Binding="{Binding Path=DWKKENNUNG3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKKENNUNG3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSNR3"
                                    Binding="{Binding Path=DWKVERSNR3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSNR3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSPATCH3"
                                    Binding="{Binding Path=DWKVERSPATCH3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSPATCH3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSDAT3"
                                    Binding="{Binding Path=DWKVERSDAT3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSDAT3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKDIR3"
                                    Binding="{Binding Path=DWKDIR3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKDIR3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKUSERPASS3"
                                    Binding="{Binding Path=DWKUSERPASS3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKUSERPASS3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKKENNUNG4"
                                    Binding="{Binding Path=DWKKENNUNG4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKKENNUNG4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSNR4"
                                    Binding="{Binding Path=DWKVERSNR4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSNR4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSPATCH4"
                                    Binding="{Binding Path=DWKVERSPATCH4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSPATCH4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKVERSDAT4"
                                    Binding="{Binding Path=DWKVERSDAT4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKVERSDAT4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKDIR4"
                                    Binding="{Binding Path=DWKDIR4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKDIR4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKUSERPASS4"
                                    Binding="{Binding Path=DWKUSERPASS4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKUSERPASS4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKPLANDAT"
                                    Binding="{Binding Path=DWKPLANDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKPLANDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKPLANTAET"
                                    Binding="{Binding Path=DWKPLANTAET, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKPLANTAET}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKWARTBIS"
                                    Binding="{Binding Path=DWKWARTBIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKWARTBIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKHOTLINE"
                                    Binding="{Binding Path=DWKHOTLINE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKHOTLINE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKANZBEN"
                                    Binding="{Binding Path=DWKANZBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKANZBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKBTRBSYS"
                                    Binding="{Binding Path=DWKBTRBSYS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKBTRBSYS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKDB"
                                    Binding="{Binding Path=DWKDB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKDB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKCOBOL"
                                    Binding="{Binding Path=DWKCOBOL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKCOBOL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKFERNKZ"
                                    Binding="{Binding Path=DWKFERNKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKFERNKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKFERNRUF"
                                    Binding="{Binding Path=DWKFERNRUF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKFERNRUF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKINST"
                                    Binding="{Binding Path=DWKINST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKINST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKMODKZ"
                                    Binding="{Binding Path=DWKMODKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKMODKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKSOURCE"
                                    Binding="{Binding Path=DWKSOURCE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKSOURCE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKKDPROG"
                                    Binding="{Binding Path=DWKKDPROG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKKDPROG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKKDIFG"
                                    Binding="{Binding Path=DWKKDIFG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKKDIFG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKCLIENT"
                                    Binding="{Binding Path=DWKCLIENT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKCLIENT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKFILLER"
                                    Binding="{Binding Path=DWKFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKAENZL"
                                    Binding="{Binding Path=DWKAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKAENB"
                                    Binding="{Binding Path=DWKAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKAEND"
                                    Binding="{Binding Path=DWKAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKNEUB"
                                    Binding="{Binding Path=DWKNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DWKNEUD"
                                    Binding="{Binding Path=DWKNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DWKNEUD}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
